/*
 *  Arrow
 *
 *  Created by David Giovannini on 1/5/07.
 *  Copyright 2007 Software by Jove. All rights reserved.
 *
 */
 
#include "SBJ/Interfaces/IRemora.h"

namespace SBJ
{

Host::~Host( void )
{
	killOffRemoras();
}

void
Host::killOffRemoras( void )
{
	stdext::hash_set< IRemora* >::iterator iter( m_remoras.begin() );
	while ( iter != m_remoras.end() )
	{
		delete *iter;
		++iter;
	}
	m_remoras.clear();
}

void
Host::attachRemora( IRemora* remora )
{
	m_remoras.insert( remora );
}

}
